// 解析的分别为 登录页面的验证码 登陆后左侧栏中的用户id 页面的响应结果 离校凭证的参数
// 具体解析规则看正则
const codeParser = str => str?.match(/(?<=&nbsp;&nbsp;)\d{4}/)?.[0]
const idParser = str => str?.match(/(?<=changeIframe\('.+?\.asp\?id=)\w{44}(?=')/)?.[0]
const responsParser = str => str?.match(/(?<=alert\(').+?(?=[。，\!])/)?.[0]
const warrantParamsParser = str => str?.match(/(?<=href\="outcampus_ewm\.asp\?).+?(?=")/)?.[0]

module.exports = { codeParser, idParser, responsParser, warrantParamsParser }